class Felines:
    def speciality(self):
        print("猫科动物善于奔跑")

class Cat(Felines):
    name = "猫"
    def speciality(self):
        print(f"{self.name}爱吃鱼")
        print(f"{self.name}会爬树")
        print('-' * 20)
        super().speciality()

cat = Cat()
cat.speciality()


class Animal(object):
    pass

class Rabbit(Animal):
    def move(self):
        print("兔子蹦蹦跳")

class Snail(Animal):
    def move(self):
        print("蜗牛缓慢爬行")

def test(obj):
    obj.move()

rabbit = Rabbit()
test(rabbit)
snail = Snail()
test(snail)
